package ipad.asia.service.alipay;

import ipad.asia.entity.Bbs;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

@Component
@FeignClient(value = "PROVIDER-ALIPAY-1901")
public interface AlipayFeign {
    /**
     * 调用Alipay沙盒支付，必须包含订单号，金额，订单名称，可选商品描述(留言)
     * @param out_trade_no  订单号
     * @param subject  订单名称
     * @param total_amount  金额
     * @param body  描述和留言
     */
    @RequestMapping(value = "order/alipay")
    String pay(@RequestParam(value = "out_trade_no", required = false) String out_trade_no,
                 @RequestParam(value = "subject", required = false) String subject,
                 @RequestParam(value = "total_amount", required = false) String total_amount,
                 @RequestParam(value = "body", required = false) String body);
}
